package com.market.service;

import com.market.entity.base.Fruit;
import com.market.entity.dto.OrderDto;
import com.market.pay.base.PricingStrategy;
import com.market.pay.details.BasePricingStrategy;
import com.market.pay.details.FullReductionStrategy;
import com.market.pay.details.StrawberryDiscountStrategy;
import com.market.util.R;

import java.math.BigDecimal;

public interface MarKetService {
    // 顾客A: 苹果和草莓（无折扣）
    BigDecimal calculateCustomerA(double appleKg, double strawberryKg);

    // 顾客B: 苹果、草莓、芒果（无折扣）
    BigDecimal calculateCustomerB(double appleKg, double strawberryKg, double mangoKg);

    // 顾客C: 草莓打8折
    BigDecimal calculateCustomerC(double appleKg, double strawberryKg, double mangoKg);

    // 顾客D: 草莓8折 + 满100减10
    BigDecimal calculateCustomerD(double appleKg, double strawberryKg, double mangoKg);

}
